﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using JUtil;
using JUtil.Extensions;
using jCompoment;
using JUtil.WinForm.Extensions;

namespace jCompomentTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            tableSelector1.Initialize(new DbConnectionConfig
            {
                DbProvider = DbProvider.SqlServer,
                ConnectionString = @"Data Source=BAKERY\SQLEXPRESS;Initial Catalog=master;User Id=sa;Password=sapass;"
            }, null);
        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            Log.D(tableSelector1.GetSelectedTables()[0]);
        }

        
    }
}
